package com.wondertek.service.entity.business;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wondertek.common.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.checkerframework.checker.units.qual.N;

import java.util.Date;

/**
 * @author wangyu
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("device_error_record")
public class DeviceErrorRecordPo extends BaseEntity {

    /*
     *设备id
     * */
    @Schema(name = "deviceId",description = "设备id")
    private String deviceId;

    /*
     *设备名称
     * */
    @Schema(name = "deviceName",description = "设备名称")
    private String deviceName;


    /*
     *报警名称
     * */
//    @Schema(name = "alarmHubName",description = "报警名称")
//    private String alarmHubName;

    /*
     * 报警类型
     * */
    @Schema(name = "errorType",description = "报警类型")
    private String errorType;

    /*
     * 报警状态
     * */
    @Schema(name = "status",description = "报警状态")
    private String status;

    /*
     * 报警信息
     * */
    @Schema(name = "errorMessage",description = "报警信息")
    private String errorMessage;


    /*
     * 分区id
     * */
    @Schema(name = "roomId",description = "分区id")
    private String roomId;

    /*
     * 分区名称
     * */
    @Schema(name = "roomName",description = "分区名称")
    private String roomName;

    /*
     * 站点id
     * */
    @Schema(name = "siteId",description = "站点id")
    private String siteId;

    /*
     * 站点名称
     * */
    @Schema(name = "siteName",description = "站点名称")
    private String siteName;

    /*
     * 报警时间
     * */
    @Schema(name = "errorTime",description = "报警时间")
    private Date errorTime;

    /*
     * 处理时间
     * */
    @Schema(name = "fixingTime",description = "处理时间")
    private Date fixingTime;

    /*
     * 处理人姓名
     * */
    @Schema(name = "fixingStaffName",description = "处理人姓名")
    private String fixingStaffName;

    /*
     * 处理人姓名
     * */
    @Schema(name = "isRead",description = "是否已读 0：未读  1：已读")
    private int isRead;

    @Schema(name = "msgType",description = "1:报警  2:故障 3:事件 4:通知")
    @TableField(exist = false)
    private String msgType;

    @Schema(name = "accessoryId",description = "配件id")
    @TableField(exist = false)
    private String accessoryId;

    @Schema(name = "ipcCount",description = "关联ipc数量")
    @TableField(exist = false)
    private Integer ipcCount;

    /*
     * 1:报警  2:故障
     * */
    @Schema(name = "type",description = "1:报警  2:故障 3:事件 4:通知")
    private Integer type;

    @Schema(name = "consumerId",description = "app用户id")
    private String consumerId;

    @Schema(name = "picUrls",description = "图片")
    private String picUrls;

    @Schema(name = "accessoryType",description = "1-烟感，2-无线键盘，3-室外信号，4-门磁，5-升级门磁，6-pir相机，7-智能监控相机，8-Alarm KIT")
    private String accessoryType;

    @Schema(name = "accessorySn",description = "配件sn")
    private String accessorySn;

    @Schema(name = "deviceSn",description = "设备sn码")
    @TableField(exist = false)
    private String deviceSn;

    @Schema(name = "deviceType",description = "设备类型")
    private String deviceType;

}
